package com.junxian.demo02.controller;

import com.junxian.demo02.dao.User;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by admin on 2018/12/5.
 */

@RestController
public class HelloController {
    @PostMapping("/user")
    public User user(@RequestBody User user) throws  Exception{
        return user;
    }
}
